<!DOCTYPE html>
<html>
<head>
    <title>JSONP Example</title>
    <script>
        function fetchData() {
            var script = document.createElement('script');
           // script.src = 'http://localhost:31001/api/data?callback=handleResponse';
            script.src = 'http://localhost:31001/api/data?jsonp=handleResponse';
            document.body.appendChild(script);
        }

        function handleResponse(data) {
            console.log('Received data:', data);
        }

        window.onload = fetchData;
    </script>
</head>
<body>
<h1>JSONP Example</h1>
</body>
</html>
